
function Child2(props) {


  const setNUm =()=>{
    props.setCount(props.count+2)
  }

    return (
      <div style={{background:'blue'}} onClick={setNUm}>Child2:{props.count}</div>
    );
  }
  
  export default Child2;
  